<?php
/**
 * Created by PhpStorm.
 * User: fengyan
 * Date: 17-11-3
 * Time: 下午4:07
 */

namespace App\Models\Portal;


use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class DocumentPhoto extends Model
{
    use SoftDeletes;

    protected $table = 'portal_document_photo';

    /**
     * 文档
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function document()
    {
        return $this->belongsTo('\\App\\Models\\Portal\\Document', 'id', 'id');
    }
}